package com.lin.cms.domain;

import java.io.Serializable;

public class Friendlink implements Serializable {

	private static final long serialVersionUID = 1L;

	private int friendlinkId;

	private int siteId;

	private int friendlinkctgId;

	private String siteName;

	private String domain;

	private String logo;

	private String email;

	private String description;

	private int views;

	private String isEnabled;

	private int priority;

	public Friendlink() {
	}

	public int getFriendlinkId() {
		return friendlinkId;
	}

	public void setFriendlinkId(int friendlinkId) {
		this.friendlinkId = friendlinkId;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public int getFriendlinkctgId() {
		return friendlinkctgId;
	}

	public void setFriendlinkctgId(int friendlinkctgId) {
		this.friendlinkctgId = friendlinkctgId;
	}

	public String getSiteName() {
		return siteName;
	}

	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getViews() {
		return views;
	}

	public void setViews(int views) {
		this.views = views;
	}

	public String getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(String isEnabled) {
		this.isEnabled = isEnabled;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + friendlinkId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Friendlink other = (Friendlink) obj;
		if (friendlinkId != other.friendlinkId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"friendlinkId=" + "'" + friendlinkId + "'" + 
			")";
	}
	
}
